home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / utilities / isfast / demo / demo.c next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  586 b   |  26 lines

  1. /* isfast demo - X11 version */
  2.  
  3.  
  4. #include <stdio.h>
  5. #include "isfast.h"
  6.  
  7.  
  8. static const char* cFast = "fast";
  9. static const char* cSlow = "slow";
  10.  
  11.  
  12. void
  13. main(int argc, char** argv) {
  14.     if (!IsFastXOpenDisplay(NULL)) {
  15.         fprintf(stderr, "can't open display\n");
  16.         exit(1);
  17.         }
  18.  
  19.     printf("Immediate mode is %s\n", ImmediateModeIsFast()? cFast: cSlow);
  20.     printf("Depth-buffering is %s\n", DepthBufferingIsFast()?cFast:cSlow);
  21.     printf("Stencilling is %s\n", StencillingIsFast()? cFast: cSlow);
  22.     printf("Texture mapping is %s\n", TextureMappingIsFast()?cFast:cSlow);
  23.  
  24.     IsFastXCloseDisplay();
  25.     }
  26.